package com.yang.service.impl;

import com.yang.dao.NoteRoleDao;
import com.yang.entity.NoteRole;
import com.yang.service.NoteRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色表(NoteRole)表服务实现类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:02
 */
@Service("noteRoleService")
public class NoteRoleServiceImpl implements NoteRoleService {
    @Resource
    private NoteRoleDao noteroleDao;

    @Override
    public Boolean insertNoteRole(NoteRole noteRole) {
        return noteroleDao.insertNoteRole(noteRole);
    }

    @Override
    public Boolean delNoteRole(String noteRID) {
        return noteroleDao.delNoteRole(noteRID);
    }

    @Override
    public List<NoteRole> queryAllNoteRole() {
        return noteroleDao.queryAllNoteRole();
    }

    @Override
    public NoteRole queryByRID(String noteRID) {
        return noteroleDao.queryByRID(noteRID);
    }
}